package cn.edu.scau.cmi.yangzemin.comprehension.domain;

public class Student {
	
	private Long id;
	private String name;
	private Long number;
	private Teacher teacher; 
	
	public Student() {}
	
	
	public Long getId() {
		return this.id;
	}
	   
	 public void setId(Long id) {
		 this.id=id;
	 }
	 
	public Long getNumber() {  
			return this.number;   
		}
		
	public void setNumber(Long number) {
			 this.number = number;
	}
	 
	 public String getName() {
		 return this.name;
	 }
	 
	 public void setName(String name) {
		 this.name = name;
	 } 
	 
	 public Teacher getTeacher() {
		 return this.teacher;
	 }
	 
	 public void setTeacher(Teacher teacher) {
		 this.teacher = teacher;
	 }
	 
		@Override
		public String toString()
		{
			return "学生学号   : " + id  + " , 姓名  : " + name ;
		}
	 
	 
}
